package com.md.api.service;

import com.md.api.entity.*;
import com.md.api.entity.dto.ComposeQueryDto;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author liujie
 * @ClassName UserSevice
 * @Date 2022/11/9 11:34
 **/
public interface UserSevice {
    HttpResult loginOut(HttpServletRequest request);

    HttpResult updateBaseInfo(HttpServletRequest request, UserInfo userInfo);

    HttpResult userLogin(HttpServletRequest request, UserInfo user);

    HttpResult register(HttpServletRequest request, UserInfo userInfo);

    HttpResult getInfo(HttpServletRequest request);

    HttpResult logOff(HttpServletRequest request);

    HttpResult pointDetails(HttpServletRequest request, ComposeQueryDto qto);

    HttpResult balanceDetails(HttpServletRequest request, ComposeQueryDto qto);

    HttpResult myPoint(HttpServletRequest request);
    HttpResult myBalance(HttpServletRequest request);

    HttpResult myBank(HttpServletRequest request);

    HttpResult addBank(HttpServletRequest request, UserBank bank);

    HttpResult updateBank(HttpServletRequest request, UserBank bank);

    HttpResult withdrawal(HttpServletRequest request, UserWithdrawalRecord drawal);

    HttpResult myDrawal(HttpServletRequest request, ComposeQueryDto queryDto);

    HttpResult setParent(HttpServletRequest request, UserInfo userInfo);

    HttpResult unbindParent(UserInfo user);


    HttpResult getNext(HttpServletRequest request,ComposeQueryDto queryDto);

    HttpResult message(HttpServletRequest request, ComposeQueryDto queryDto);

    HttpResult messageDetail(HttpServletRequest request, UserMessage message);
}
